import "./index.scss";

import { IconDict } from "./IconDict";

export interface IconProps {
  name: string;
  [key: string]: any;
}
/** 图标 */
export const Icon = (props: IconProps) => {
  const icon = IconDict[props.name];
  return <div className="icon">{icon}</div>;
};
